﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _1.CountriesAndTownsSimple
{
    class Country
    {
        private string name;
        private string language;
        private List<Town> towns;
        private string image;
                        
        public string Name
        {
            get { return name; }
            set { name = value; }
        }        

        public string Language
        {
            get { return language; }
            set { language = value; }
        }

        public List<Town> Towns
        {
            get { return towns; }
            set { towns = value; }
        }

        public string Image
        {
            get { return image; }
            set { image = value; }
        }

        public Country() 
        {
        }

        public Country(string name, string language, List<Town> towns)
        {
            this.name = name;
            this.language = language;
            this.towns = new List<Town>();

            foreach (var item in towns)
            {
                this.towns.Add(item);
            }
        }
    }
}
